package com.lion.common.base.contexts;

import com.chris.dev.base.libs.v1.http.protocols.HttpHeader;

/**
 * @author Chris Chan
 * Create On 2025/8/1 上午8:49
 * Use for: 通用请求线程上下文持有者
 * Explain:
 */
public class CommonRequestContextHolder {
    private static final ThreadLocal<HttpHeader> headerThreadLocal = new ThreadLocal<>();

    public static HttpHeader getHeader() {
        return headerThreadLocal.get();
    }

    public static void setHeader(HttpHeader header) {
        headerThreadLocal.set(header);
    }
}
